<div class="container_12">
    
    <div class="grid_12">
     
    <?php   
  
    $atributos=array('id' => 'loguin_form');
    
    echo form_open('loguin/logued',$atributos);
        
        
        $data = array(
              'name'        => 'username',
              'id'          => 'username',
              'value'       => set_value('username'), //para que recuerde campo correcto
            
            );
        
         $data2 = array(
              'name'        => 'password',
              'id'          => 'password',
              'value'       => '',
            
            );
         
         $submit = array(
              'name'        => 'submit',
              'id'          => 'submit',
              'value'       => 'login',
            
            );


echo form_label('username');
echo form_input($data);
echo form_error('username');
echo form_label('contraseña');
echo form_password($data2);
echo form_error('password');
echo form_submit($submit);
        ?>
        
        
    <?php    echo form_close();              ?>
        
    </div>
    
</div>